package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

import static org.jsola.hr.example.EmpInfoExample.*;
import static org.jsola.hr.example.EmpInfoExample.M_COMPANY_ID_MAX;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "【员工信息】转正的所有的参数")
@Data
public class EmpTurnStraightDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = "要操作的员工集合")
    private List<String> empIdList;

    @ApiModelProperty(notes = "转正时间")
    private Date turnStraightDate;

    @ApiModelProperty(notes = "选择的入职流程id")
    private String approFlowId;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;
}

